#pragma once
#include "cocos2d.h"
#include <iostream>

using namespace cocos2d;
using namespace std;

class CardSprite : public Sprite
{

	CardSprite(int ID);
	~CardSprite();
	void setImage();

	static Layer* CardsLayer;
	static void GetNewCard();
public:
	static CardSprite* Cards[5];
	static CardSprite* Sprites[5];
	static Vec2 cardPosition[5];
	static int selectedID;
	static void StartCards(int cardsID[5], Layer* parentLayer);
	static void SettleCards();
	static void RestoreCards();
	virtual void onEnter();
	
	bool isSelected = false;
	int cardID;
	int spirteIndex;
};

